<template>
    <div class="result_list"  >
      <h2>{{ nodeData.nodename }}</h2>
      <div id="class">{{ nodeData.className }}</div>
      <div id="language">{{ nodeData.language }}</div>
      <div id="author">{{ nodeData.username }}</div>
      <div id="day">{{ nodeData.time }}</div>
      <div id="popularity"><span></span>{{ nodeData.popularity }}</div>
      <p id="introduction">
        {{ nodeData.description==null ? "这是个作者很懒，什么也没留下": nodeData.description}}
      </p>
    </div>
</template>

<script>
export default {
  props: ["nodeData"],
};
</script>

<style scoped>
.result_list  {
  position: relative;
  display: block;
  width: 100%;
  height: 100px;
  border-bottom: #55556d 0.5px solid;
  cursor: pointer;
}

h2 {
  color: #fff;
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: x-large;
  transition: all 0.3s;
}

.result_list:hover h2 {
  color: #6556bf;
}

#class {
  position: absolute;
  bottom: 5px;
  left: 10px;
  color: #55556d;
  font-size: x-small;
  font-weight: normal;
}

#language {
  position: absolute;
  bottom: 5px;
  left: 80px;
  color: #55556d;
  font-size: x-small;
  font-weight: normal;
}

#author {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #55556d;
  font-size: large;
  font-weight: normal;
}

#day {
  position: absolute;
  bottom: 5px;
  right: 10px;
  color: #55556d;
  font-size: x-small;
  font-weight: normal;
}

#popularity {
  position: absolute;
  bottom: 5px;
  right: 95px;
  color: #55556d;
  font-size: x-small;
  font-weight: normal;
}

#popularity span {
  font-family: icomoon;
  font-size: x-small;
  margin-right: 5px;
}

#introduction {
  font-size: small;
  position: absolute;
  top: 40px;
  left: 10px;
  display: block;
  width: 95%;
  height: 35px;
  margin: 0;
  overflow: hidden;
  font-size: small;
  font-weight: normal;
  color: #55556d;
}

</style>